home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Gold Collection
/
Software Vault - The Gold Collection (American Databankers) (1993).ISO
/
cdr47
/
wasm223.zip
/
SEND
< prev
next >
Wrap
Text File
|
1993-05-04
|
1KB
|
44 lines
//
// SESSION Send Routines, By Eric Tauck
//
// Requires:
//
// STRING
// TIMER
//
Send_End JUMP
: Hide { 0 } // SendByte hidden flag
: Speed { 0 } // SendByte pause ticks
// ------------
// Send a byte.
// ------------
: SendByte // (byte - )
Hide @ SendByte1 ?JUMP // check if hidden
Speed @ Pause CALL TERM ; // send byte via the terminal
: SendByte1
Speed @ Pause CALL CPUT ; // send byte directly (hidden)
// --------------
// Send a string.
// --------------
: SendString // (string - )
SendByte ForString CALL ; // send each byte of the string
// ------------------------------
// Send an initialization string.
// ------------------------------
: SendInitString // (string - )
Hide @ Speed @ // save hide flag and speed
TRUE Hide ! 5 Speed ! // set hide to true and slow to 4 ticks
ROT SendString CALL // send string
13 SendByte CALL // send ENTER
Speed ! Hide ! ; // restore hide flag and speed
: Send_End